#pragma once


// DlgAdjustmentHistogram dialog

class DlgAdjustmentHistogram : public CDialog
{
	DECLARE_DYNAMIC(DlgAdjustmentHistogram)

public:
	DlgAdjustmentHistogram(CWnd* pParent = NULL);   // standard constructor
	virtual ~DlgAdjustmentHistogram();

// Dialog Data
	enum { IDD = IDD_System_Adjustment_Histogram };

private:
	BOOL m_bInit;
	void SetMarkValue(int nMax = 256);

private:
	int     m_nWidth;

	CDC     m_MemDC;
	CSize   m_sMemDc;
	CBitmap m_Bitmap;

	int     m_nMemDcWidth;
	int     m_nMemDcHeight; //

	CRect   m_rMap;

public:
	int     m_nMax;

private:
	int  SetHistogramInfo(zkImgHistogram *pImgHistogram);
	void ShowSquareMap(CDC *pDc);

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnTimer(UINT_PTR nIDEvent);
	virtual BOOL DestroyWindow();
	afx_msg void OnPaint();
};
